<?php
class colaborador_rol
		{
			private $id_colaborador;
			private $id_rol;
		// GET
			public function getId_colaborador() {
			  return $this->id_colaborador;
			}

			public function getId_rol() {
			  return $this->id_rol;
			}

		// SET
			public function setId_colaborador($id_colaborador) {
			  $this->id_colaborador=$id_colaborador;
			}

			public function setId_rol($id_rol) {
			  $this->id_rol=$id_rol;
			}

		// ORM GENERATE MODEL
			public function table() {
			  return "colaborador_rol" ;
			}

			public function signesToSave() {
			  return "?,?";
			}

			public function signesToUpdate() {
			  return "id_rol=?";
			}

			public function fieldsToArray() {
			  return array("id_colaborador","id_rol");
			}

			public function fieldsToString() {
			  return "id_colaborador,id_rol" ;
			}

			public function paramsToSave() {
			  $array = array(
					$this-> getId_colaborador(),
					$this-> getId_rol());
			 return $array;
			}

			public function paramsToUpdate() {
			  $array = array(
					$this-> getId_rol(),
					$this-> getId_colaborador());
			 return $array;
			}

        }
 ?>

